package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PartyDevelopmentObjectMapper;
import com.ruoyi.system.domain.PartyDevelopmentObject;
import com.ruoyi.system.service.IPartyDevelopmentObjectService;

/**
 * 发展对象申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
@Service
public class PartyDevelopmentObjectServiceImpl implements IPartyDevelopmentObjectService 
{
    @Autowired
    private PartyDevelopmentObjectMapper partyDevelopmentObjectMapper;

    /**
     * 查询发展对象申请
     * 
     * @param objectId 发展对象申请主键
     * @return 发展对象申请
     */
    @Override
    public PartyDevelopmentObject selectPartyDevelopmentObjectByObjectId(Long objectId)
    {
        return partyDevelopmentObjectMapper.selectPartyDevelopmentObjectByObjectId(objectId);
    }

    /**
     * 查询发展对象申请列表
     * 
     * @param partyDevelopmentObject 发展对象申请
     * @return 发展对象申请
     */
    @Override
    public List<PartyDevelopmentObject> selectPartyDevelopmentObjectList(PartyDevelopmentObject partyDevelopmentObject)
    {
        return partyDevelopmentObjectMapper.selectPartyDevelopmentObjectList(partyDevelopmentObject);
    }

    /**
     * 新增发展对象申请
     * 
     * @param partyDevelopmentObject 发展对象申请
     * @return 结果
     */
    @Override
    public int insertPartyDevelopmentObject(PartyDevelopmentObject partyDevelopmentObject)
    {
        partyDevelopmentObject.setCreateTime(DateUtils.getNowDate());
        return partyDevelopmentObjectMapper.insertPartyDevelopmentObject(partyDevelopmentObject);
    }

    /**
     * 修改发展对象申请
     * 
     * @param partyDevelopmentObject 发展对象申请
     * @return 结果
     */
    @Override
    public int updatePartyDevelopmentObject(PartyDevelopmentObject partyDevelopmentObject)
    {
        partyDevelopmentObject.setUpdateTime(DateUtils.getNowDate());
        return partyDevelopmentObjectMapper.updatePartyDevelopmentObject(partyDevelopmentObject);
    }

    /**
     * 批量删除发展对象申请
     * 
     * @param objectIds 需要删除的发展对象申请主键
     * @return 结果
     */
    @Override
    public int deletePartyDevelopmentObjectByObjectIds(Long[] objectIds)
    {
        return partyDevelopmentObjectMapper.deletePartyDevelopmentObjectByObjectIds(objectIds);
    }

    /**
     * 删除发展对象申请信息
     * 
     * @param objectId 发展对象申请主键
     * @return 结果
     */
    @Override
    public int deletePartyDevelopmentObjectByObjectId(Long objectId)
    {
        return partyDevelopmentObjectMapper.deletePartyDevelopmentObjectByObjectId(objectId);
    }
}
